var size = 1.0;
		big();
		bigToSmall();
		//页面加载放大缩小
		function big() {
			size = size + 0.5;
			set();
		}

		function small() {
			size = size - 0.01;
			set();
		}

		function set() {
			document.getElementById("login_center_bg").style.zoom = size;
			document.getElementById("login_center_bg").style.cssText += '; -moz-transform: scale(' + size + ');-moz-transform-origin: 0 0; '; //
		}

		function bigToSmall() {
			var i = 0;
			$("#login_center_bg").fadeIn(1500);
			var dong = setInterval(function() {
				i += 0.01;
				size = size - i;
				set();
				if(i === 0.09) {
					clearInterval(dong)
				}
			}, 100)
		}

		function smallToBig() {
			var i = 0;
			var op = 1;
			$("#login_center_bg").fadeOut(1000);
			var dong = setInterval(function() {
				i += 0.01;
				size = size + i;
				set();
				if(i === 0.09) {
					size = 1.0;
					location.href = "index.html";
					clearInterval(dong);
				}
			}, 100)
		}
		//接入leanCloud获取已注册邮箱
		window.onload = function() {
			var APP_ID = 'c4w6bVvWfh8xxcmkBE1G0gIt-gzGzoHsz';
				var APP_KEY = 'JBikg4Ksk76zcTi5BKYWvTJF';
			AV.init({
				appId: APP_ID,
				appKey: APP_KEY
			});
		}

		function login() {
			AV.User.logIn($("#login_text").val(), $("#login_pwd").val()).then(function(loginedUser) {
				var href = getidurl("RetUrl");
				$("#index_dl").html("登录成功");
				location.href = href;
			}, function(error) {
				//					alert(JSON.stringify(error));
			});
		}

		function getidurl(name) {
			var myurl = location.search;
			var start = myurl.indexOf(name + "=");
			if(start != -1) {
				start = start + name.length + 1;
				var end = myurl.indexOf("&", start);
				if(end == -1) {
					end = myurl.length;
				}
				//转义
				return decodeURI(myurl.substring(start, end));
			}
		}

		function yanzheng() {
			var ret = /^([A-z0-9_\.\-])+\@(([A-z0-9\-])+\.)+([A-z0-9]{2,4})+$/; //验证邮箱

			var login_txt = $("#login_text").val();
			if(!ret.test(login_txt)) {
				$("#login_TorF").attr("style", "background-image:url(img/login/TorF.png);background-position-x: -40px;")
			} else {
				$("#login_TorF").attr("style", "background-image: url(img/login/TorF.png);")
			}
		}